package com.ruoyi.resource.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 同步镜像数据对象 img_resource
 *
 * @author ruoyi
 * @date 2022-04-15
 */
public class ImgResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一主键 */
    private Long id;

    /** 外部对象id */
    @Excel(name = "外部对象id")
    private String foreignId;

    /** 约定此字段存储json类型的数据，能映射成为对象 */
    @Excel(name = "约定此字段存储json类型的数据，能映射成为对象")
    private String values;

    /** 对象类型，例如：OBJECT/DEPT/USER/POST/CONFIG等等 */
    @Excel(name = "对象类型，例如：OBJECT/DEPT/USER/POST/CONFIG等等")
    private String type;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setForeignId(String foreignId)
    {
        this.foreignId = foreignId;
    }

    public String getForeignId()
    {
        return foreignId;
    }
    public void setValues(String values)
    {
        this.values = values;
    }

    public String getValues()
    {
        return values;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("foreignId", getForeignId())
            .append("values", getValues())
            .append("type", getType())
            .toString();
    }
}
